package com.ccnu.JobHub.model.database;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("feedback")
public class Feedback {
    @TableId("feedback_id")
    private Integer feedbackId; //主键id

    @TableField("content")
    private String content; // 反馈内容

    @TableField("created_at")
    private LocalDateTime createdAt; // 反馈生成时间

    @TableField("resolved_at")
    private LocalDateTime resolvedAt; // 反馈解决时间

    @TableField("student_id")
    private Integer studentId; // 发起反馈的学生id

    @TableField("status")
    private Integer status; // 反馈当前的状态，0为未解决，1为已经解决
}
